package com.ruoyi.teaching.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 考勤汇总对象 ya_attendance
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ya_attendance")
public class YaAttendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.NONE)
    private Long id;
    /** 学生姓名 */
    @Excel(name = "学生姓名")
    @TableField
    private String studentName;
    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField
    private Date date;
    /** 班级名称 */
    @Excel(name = "班级名称")
    @TableField
    private String className;
    /** 阶段 */
    @Excel(name = "阶段")
    @TableField
    private Long stage;
    /** 周几 */
    @Excel(name = "周几")
    @TableField
    private Long weekday;
    /** 早（出席、旷课、迟到、请假、事假、病假、线上（1-7）） */
    @Excel(name = "早", readConverterExp = "出=席、旷课、迟到、请假、事假、病假、线上（1-7")
    @TableField
    private Long early;
    /** 中（出席、旷课、迟到、请假、事假、病假、线上（1-7）） */
    @Excel(name = "中", readConverterExp = "出=席、旷课、迟到、请假、事假、病假、线上（1-7")
    @TableField
    private Long noon;
    /** 晚（出席、旷课、迟到、请假、事假、病假、线上（1-7）） */
    @Excel(name = "晚", readConverterExp = "出=席、旷课、迟到、请假、事假、病假、线上（1-7")
    @TableField
    private Long night;
}
